<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>wangEditor2 test</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/wangEditor/css/wangEditor.min.css">
    <style type="text/css">
        #div1 {
            height: 300px;
        }
        .container {
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
    </style>
</head>
<body>


          <div class="container">
              <div id="div2">
                  <p>请输入内容...</p>
              </div>
          </div>

    <button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button>
    <div id="myModal" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
      <div class="modal-dialog modal-lg">
        <div class="modal-content">
          <p>bootstrap modal 测试 top</p>
    
          <div class="container">
              <div id="div1">
                  <p>请输入内容...</p>
              </div>
          </div>

          <p>bootstrap modal 测试 bottom</p>

        </div>
      </div>
    </div>
    
    <script type="text/javascript" src="${ctx}/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/bootstrap.js"></script>
    <script type="text/javascript" src="${ctx}/wangEditor/js/wangEditor.js"></script>
    <!--<script type="text/javascript" src="../dist/js/wangEditor.min.js"></script>-->
    <script type="text/javascript">        
        var editor = new wangEditor('div1');

        // 上传图片
        editor.config.uploadImgUrl = '/upload';

        editor.create();
        
        
        var editor0 = new wangEditor('div2');

        // 上传图片
        editor0.config.uploadImgUrl = '/upload';

        editor0.create();
    </script>
</body>
</html>